const { defineConfig } = require('@vue/cli-service')

const path = require('path')

module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack:{
      resolve:{
        alias:{
          '@': path.resolve(__dirname, 'src')
        }
      }
  },
  devServer: {
    host: 'localhost',
    port: 8081,
    proxy: {
      '/api': {
        target: 'http://localhost:8377',
        changeOrigin: true,
         pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
})
